﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    public interface IPregnancyRepository
    {
        /// <summary>
        /// 妊检列表
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Sheeppregnancy>> GetSheeppregnancy();
        /// <summary>
        /// 添加种母妊检
        /// </summary>
        /// <param name="sheeppregnancy"></param>
        /// <returns></returns>
        Task<int> AddPregnancy(List<Sheeppregnancy> sheeppregnancy);
        /// <summary>
        /// 种母妊检删除
        /// </summary>
        /// <param name="pregnancyId"></param>
        /// <returns></returns>
        Task<int> DelePregnancy(string? eartag);
        /// <summary>
        /// 种母妊检修改批量
        /// </summary>
        /// <param name="sheeppregnancy"></param>
        /// <returns></returns>
        Task<int> UpdSheeppregnancys(List<Sheeppregnancy> sheeppregnancy);
        /// <summary>
        /// 种母妊检修改
        /// </summary>
        /// <param name="sheeppregnancy"></param>
        /// <returns></returns>
        Task<int> UpdSheeppregnancy(Sheeppregnancy sheeppregnancy);
    }
}
